package com.xuanwu.shop.service.impl;

import java.util.List;

import com.xuanwu.shop.dao.CategoryDaoInterface;
import com.xuanwu.shop.dao.impl.CategoryDaoImpl;
import com.xuanwu.shop.entity.Category;
import com.xuanwu.shop.service.CategoryServiceInterface;

public class CategoryServiceImpl implements CategoryServiceInterface {

	CategoryDaoInterface categoryDao = new CategoryDaoImpl();
	@Override
	public List<Category> getFirstList() {
		return categoryDao.findFirstList();
	}

	@Override
	public List<Category> getSecondListByPid(int pid) {
		return categoryDao.findSecondListByPid(pid);
	}

}
